﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using Intorise.API;
using System.Drawing;
using System.IO;
using System.Drawing.Imaging;
using Intorise.Common;

namespace Bot
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            //while (true)
            //{
            //    Console.Write("Input image filename(enter \"quit\" to exit):");
            //    var filename = Console.ReadLine();
            //    if (filename == "quit") { break; }
            //    Bitmap currentImage = (Bitmap)Image.FromFile(filename);
            //    var image = ImageTools.Clone(currentImage, 125, 90, 19, 12);
            //    ImageTools.ReplaceColor(image, Color.White, Color.Black, Color.White);
            //    var text = BotHelper.OcrScan(image);
            //    ConsoleBLL.WriteLine("Ocr scan text is:" + text);
            //}
            //return;

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            //Application.Run(new Form1());
            Application.Run(new MainWindow());
        }
    }
}
